{% extends "base.html" %}
{% block tabs %}
<li><a href="/" title="Home">Home</a></li>
{% endblock %}

{% block search %}{% endblock %} 

{% block sidebar_title %}{% endblock %}

{% block sidebar_content %}

{% endblock %}

{% block main_title %}<h1><a>Registration Form</a></h1>{% endblock %}

{% block main_subtitle %}{% endblock %}

{% block main_content %}
<form id="form_register" class="appnitro"  method="post" action="/reg/userReg/">{% csrf_token %}
						
<ul >

{{ form.non_field_errors }}
{% for field in form %}
	<div class="fieldWrapper">
		{{ field.label_tag }} <br/>
		{% if field.errors %}
			<label class="text" style="color:#FF0000" >{{ field.errors }}</label>
		{% endif %}
		{{ field }}<br/><br/><br/>
	</div>
{% endfor %}

<div>
	<label>Email </label><br/>
	{% if email_error %}
		<dd><label class="text" style="color:#FF0000" ><li>{{ email_error }}</li></label></dd>
	{% endif %} 
	<input name="email" class="element text medium" type="text" maxlength="255" value="{{ email }}"/><br/><br/><br/> 
</div> 




	<label class="description" for="element_1">User Type </label><br/>
	{% if userType_error %}
		<dd><label class="text" style="color:#FF0000" ><li>{{ userType_error }}</li></label></dd>
	{% else %}
		<br/>
	{% endif %}
	<input id="element_1_1" name="user_type" class="element radio" type="radio" value="student" />
	<label class="choice" for="element_1_1">Student</label><br/>
	<input id="element_1_2" name="user_type" class="element radio" type="radio" value="teacher" />
	<label class="choice" for="element_1_2">Teacher</label><br/>
	<input id="element_1_3" name="user_type" class="element radio" type="radio" value="institute" />
	<label class="choice" for="element_1_3">Institute</label><br/><br/>


	<input id="search_btn" type="submit" value="Next" /><br/><br/><br/>
	</ul>
</form>
{% endblock %}
